import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    id: localStorage.id?JSON.parse(localStorage.id):{}
  },
  mutations: {
    updateId(state,id) {
      localStorage.id=JSON.stringify(id);
        state.id = id;
    }
  },
  actions: {
  },
  modules: {
  },

})
